#ifndef _DEVICE_KEYBOAD_INPUT_H_
#define _DEVICE_KEYBOAD_INPUT_H_

#include <dinput.h>

/**
 *
 */
class DeviceKeyboadInput
{
public:
	DeviceKeyboadInput();
	~DeviceKeyboadInput();

	void keyboadInit();

	void keyboadUpdate();

	void keyboadFinish();

	void keyboadActiveInput();

	bool isKeyState(DWORD);
	bool isKeyTrigger(DWORD);

private:
	LPDIRECTINPUT8 _lpDI;
	LPDIRECTINPUTDEVICE8 _lpDIDevice;
	HWND _hWnd;

	char newBuf[256];
	char oldBuf[256];
};

#endif